package com.micro.request;

import java.math.BigDecimal;
import java.util.List;

public class MealOrderRequest {
    private Long trainTicketOrderId;
    private String username;
    private BigDecimal totalPrice;
    private List<MealOrderItemRequest> items;

    // 构造函数
    public MealOrderRequest() {}

    // Getter和Setter方法
    public Long getTrainTicketOrderId() {
        return trainTicketOrderId;
    }

    public void setTrainTicketOrderId(Long trainTicketOrderId) {
        this.trainTicketOrderId = trainTicketOrderId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public List<MealOrderItemRequest> getItems() {
        return items;
    }

    public void setItems(List<MealOrderItemRequest> items) {
        this.items = items;
    }

    public static class MealOrderItemRequest {
        private Long mealId;
        private String mealName;
        private String mealType;
        private BigDecimal price;
        private Integer quantity;
        private BigDecimal subtotal;

        // 构造函数
        public MealOrderItemRequest() {}

        // Getter和Setter方法
        public Long getMealId() {
            return mealId;
        }

        public void setMealId(Long mealId) {
            this.mealId = mealId;
        }

        public String getMealName() {
            return mealName;
        }

        public void setMealName(String mealName) {
            this.mealName = mealName;
        }

        public String getMealType() {
            return mealType;
        }

        public void setMealType(String mealType) {
            this.mealType = mealType;
        }

        public BigDecimal getPrice() {
            return price;
        }

        public void setPrice(BigDecimal price) {
            this.price = price;
        }

        public Integer getQuantity() {
            return quantity;
        }

        public void setQuantity(Integer quantity) {
            this.quantity = quantity;
        }

        public BigDecimal getSubtotal() {
            return subtotal;
        }

        public void setSubtotal(BigDecimal subtotal) {
            this.subtotal = subtotal;
        }
    }
}
